import request from '@/utils/request'

//获取个人日程信息
export function getMySchedules() {
    return request({
        url: '/calender/detail',
        method: 'get'
    })
}
//获取他人日程信息
export function getSchedulesByUserId(userId) {
    return request({
        url: '/calender/detail/'+userId,
        method: 'get'
    })
}
//removeMySchedule,modifyMySchedule
//修改
export function modifyMySchedule(data) {
    return request({
        url: '/calender/modify',
        method: 'post',
        data
    })
}
//删除
export function removeMySchedule(data) {
    return request({
        url: '/calender/remove',
        method: 'post',
        data
    })
}